import Vue from "vue"
import App from "./App.vue"
import store from "./store"
import { router } from "./router"
import load from '@/load'

// 表单验证
import validate from '@/utils/validate'
Vue.prototype.validate = validate

// 公共常量与方法
import common from '@/utils/common'
Vue.prototype.common = common

import Vant from 'vant'
import './theme/index.less'
Vue.use(Vant)
Vue.prototype.$toast.setDefaultOptions('loading', { forbidClick: true })

Vue.config.productionTip = false

load({ router, store, toast: Vue.prototype.$toast })

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app")
